#ifndef C_FTP_H
#define C_FTP_H
#ifdef __cplusplus
extern "C" {
#endif
#define FTP_DIR_EXISTS              1
#define FTP_SUCCESS                 0
#define FTP_FAILED                  -1
#define FTP_FILE_ERROR              -2
typedef struct tagFTPDIR
{
    char typeName[8];
    char year[12];
    char hour[4];
    char min[4];
}FTPDIR;

int renameFtpFile(char *server, int port, char *usr, char *password, char *remoteName, char *newName);
int creatRenzixingFtpDir(char *server, int port, char *usr, char *password, char *type, FTPDIR *ftpDir);

#ifdef  __cplusplus
}
#endif
#endif
